package com.dmx.cep.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.dmx.cep.entity.AdiImportTask;
import com.dmx.cep.entity.FtpServerConfig;
import com.dmx.cep.ws.datamodel.ContentStatus;
import com.dmx.fw.dao.interfaces.Dao;

public interface ContentDao extends Dao{
	public List<AdiImportTask> getAdiImportTasks(String siteId,int maxRecords);
	
	public FtpServerConfig  getFtpServer(int ftpType);
	
	/**
	 * 删除VOD资产,APP调用
	 * @param contentIDList
	 * @throws Exception
	 */
	public void contentDelete(String[] contentIDList) throws DataAccessException;
	
	/**
	 * 删除VOD资产,action调用
	 * @param contentIDList
	 * @throws Exception
	 */
	public void deleteContent(String[] contentIDList) throws DataAccessException;
	
	/**
	 * 更新VOD资产状态
	 * @param contentStatusList
	 * @param status
	 * @throws Exception
	 */
	public void contentUpdate(ContentStatus[] contentStatusList) throws DataAccessException;
	
	/**
	 * 查询资产状态
	 * @param assetId
	 * @return
	 * @throws DataAccessException
	 */
	public int getAssetStatus(String assetId) throws DataAccessException;
	
	/**
	 * 查询VOD内容类型列表
	 * @return
	 * @throws Exception
	 */
	public List<Object[]> getContentTypeList() throws Exception;
	
	/**
	 * 统计当前需要手工处理字幕的任务数量
	 * @return
	 * @throws Exception
	 */
	public int countCaptionTask() throws Exception;
}
